<?php
    include "admin_goods.php";

$id=$_REQUEST['addid'];
$goodsimg=$_REQUEST['addgoodsimg'];
$goodsname=$_REQUEST['addgoodsname'];
$goodsnews=$_REQUEST['addgoodsnews'];
$price=$_REQUEST['addprice'];
$number=$_REQUEST['addnumber'];
$shop=$_REQUEST['addshop'];
$area=$_REQUEST['addarea'];
$type=$_REQUEST['type'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

  $sql =  "insert into goods(goodsimg,goodsname,goodsnews,price,number,shop,area,type,`extend`) values
   ('$goodsimg','$goodsname','$goodsnews','$price','$number','$shop','$area','$type','普通')";

   $result=mysqli_query($conn,$sql);
     

    if (!$result){
        echo '数据添加失败！';
    }else{
        echo '数据添加成功！';
    }
    
    mysqli_close($conn);
?>
